# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyportify
_pkgname=pyportify
pkgver=0.4.1
pkgrel=10
pkgdesc='App to transfer your spotify playlists to Google Play Music.'
arch=('any')
url='https://pypi.org/project/pyportify/#files'
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/09/fe/5b756a3a31d8d2f9c7ad4fbed92d10cce26a76eb4241fd3bb7e377c287e1/$_pkgname-$pkgver.tar.gz")
sha512sums=('e1c639541b21f26bb14c3ceb610b9d2d66d647b17f52a26f7515afd611c3324799f88c2d03f3181d522bc4f4e88c7292a40ac9ca988330b8471b2cfff633f10b')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build

  rm -rf "$pkgdir/usr/LICENSE.txt"
}

